package com.fhz.mvitest.model

import com.fhz.mvitest.api.YaoServiceApi
import com.fhz.mvitest.entity.BannerEntity
import com.fhz.mvitest.entity.ResponseEntity
import com.fhz.mvitest.utils.RetrofitFactory
import javax.inject.Inject

/**
 * 时间:2023/5/19
 * @author Mr.Feng
 * 简述: 数据层的类
 */
class BannerRepostory @Inject constructor() {

    suspend fun getBannerList(): ResponseEntity<List<BannerEntity>>{
       return RetrofitFactory.create(YaoServiceApi::class.java).getBannerList()
    }
}